<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>污染档案管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
        $(document).ready(function() {
            $("#name").focus();
            $("#inputForm").validate({
                submitHandler: function(form){
                    loading('正在提交，请稍等...');
                    form.submit();
                },
                errorContainer: "#messageBox",
//				errorPlacement: function(error, element) {
//					$("#messageBox").text("输入有误，请先更正。");
//					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
//						error.appendTo(element.parent().parent());
//					} else {
//						error.insertAfter(element);
//					}
//				}
            });
        });
	</script>
</head>
<body>
<ul class="nav nav-tabs">
	<li><a href="${ctx}/enviroment/case/">污染档案列表</a></li>
	<li class="active"><a href="${ctx}/enviroment/case/form">污染档案添加</a></li>
</ul>
<form:form id="inputForm" modelAttribute="case" action="${ctx}/enviroment/case/save" method="post" class="form-horizontal">
	<form:hidden path="id"/>
	<sys:message content="${message}"/>
	<div class="control-group">
		<label class="control-label">档案名称:</label>
		<div class="controls">
			<form:input path="name" htmlEscape="false" maxlength="50" class="required"/>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">主要能源及其年消耗量:</label>
		<div class="controls">
			<input value="${energyAndYU.get('water')}"  htmlEscape="false" maxlength="200"/>
			<span class="help-inline">水</span>
			<input value="${energyAndYU.get('electricity')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">电</span>
			<input value="${energyAndYU.get('fuel')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">燃料</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">主要原辅材料及其年使用量:</label>
		<div class="controls">
			<input value="${materialsAndYU.get('water')}"  htmlEscape="false" maxlength="200"/>
			<span class="help-inline">盐酸</span>
			<input value="${materialsAndYU.get('electricity')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">黄磷</span>
			<input value="${materialsAndYU.get('fuel')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">煤油</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">主要产品及规模:</label>
		<div class="controls">
			<input value="${productionAndSize.get('water')}"  htmlEscape="false" maxlength="200"/>
			<span class="help-inline">电</span>
			<input value="${productionAndSize.get('electricity')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">燃料</span>
			<input value="${productionAndSize.get('fuel')}" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">电解质水</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">排放污染物种类:</label>
		<div class="controls">
			<form:input path="pollutionCategory" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">排放污染物种类</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">主要生产工艺及产污节点:</label>
		<div class="controls">
			<form:input path="processAndNode" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">主要生产工艺及产污节点</span>
		</div>
	</div>
	<div class="control-group">
		<label class="control-label">治污防治设施名称处理工艺及能力:</label>
		<div class="controls">
			<form:input path="technologyAndFacilities" htmlEscape="false" maxlength="200"/>
			<span class="help-inline">治污防治设施名称处理工艺及能力</span>
		</div>
	</div>
	<div class="form-actions">
		<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
		<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
	</div>
</form:form>
</body>
</html>